<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
    <script type="text/javascript" src="js/jquery.min.js" ></script>
    <script type="text/javascript" src="js/jquery.router.js" ></script>
    <script type="text/javascript" src="bootstrap/js/bootstrap.min.js" ></script>
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<a href="#!a">go to a</a><br/>
<a href="#!b">go to b</a><br/>
<div id="app"></div>
</body>
<script type="text/javascript">
    window.onload = function() {
      var router = new Router('app');
      router.add('404', '404.html');
      router.add('a', 'a.html');
      router.add('b', 'b.html');
      router.setIndex('404');
      router.start();
    };
</script>
</html>